Xgettext learned about template strings now, which is good. However
it's still buggy, so instead of the "classic" xgettext issue with
backticks, we now have exciting new issues to find work-arounds for.
One issue is that it doesn't detect backticks inside string constants
as regular characters, so having an odd number of backticks throws off
its regex.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/792
// markdown for pasting in gitlab issues
let lines = [
`The settings of extension ${row.uuid} had an error:`,
- '```',
+ '```', // '`' (xgettext throws up on odd number of backticks)
`${exc}`,
- '```',
+ '```', // '`'
'',
'Stack trace:',
- '```',
+ '```', // '`'
exc.stack.replace(/\n$/, ''), // stack without trailing newline
- '```',
+ '```', // '`'
''
];
clipboard.set_text(lines.join('\n'), -1);